package wiki.generic.managers;

import java.util.HashMap;

import wiki.generic.io.PagesMap;


/**
 * 
 * @author <p><strong>JwTeam</strong></p> 
 * Gestore delle varie mappe delle pagine, ne esiste un unica istanza.
 */
public class PagesMapManager {

	private static final PagesMapManager Pmanager=new PagesMapManager();
	
	HashMap<String, PagesMap> pagesMap=new HashMap<String, PagesMap>();
	
	private PagesMapManager() {
		
	}
	
	/**
	 * 
	 * @return PagesMapManager l'unica istanza di PagesMapManager
	 */
	public static PagesMapManager getPmanager() {
		return Pmanager;
	}	
	
	/**
	 * 
	 * @return mappa con le varie PagesMap
	 * @see PagesMap
	 */
	public HashMap<String, PagesMap> getPagesMap() {
		return pagesMap;
	}
	
	/**
	 * 
	 * @param pagesMap mappa con le varie PagesMap
	 */
	public void setPagesMap(HashMap<String, PagesMap> pagesMap) {
		this.pagesMap = pagesMap;
	}
}
